/* 订单列表页面样式 */

/* 订单筛选区域 */
.order-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.filter-btn.active {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

/* 订单列表 */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 订单卡片 */
.order-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    background: #fff;
    transition: box-shadow 0.3s;
    cursor: pointer;
}

.order-card:hover {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.order-id {
    color: #666;
    font-size: 14px;
}

.order-status {
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.order-status.unpaid {
    color: #faad14;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

.order-status.paid {
    color: #1890ff;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
}

.order-status.shipped {
    color: #722ed1;
    background: #f9f0ff;
    border: 1px solid #d3adf7;
}

.order-status.completed {
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.order-status.cancelled {
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
}

/* 订单商品预览 */
.order-items-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 60px;
}

.order-item-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.order-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-quantity {
    position: absolute;
    right: 2px;
    bottom: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0 4px;
    border-radius: 4px;
    font-size: 12px;
}

.more-items {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px dashed #ddd;
    border-radius: 4px;
    color: #999;
    font-size: 12px;
}

/* 订单底部 */
.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.order-total {
    font-size: 14px;
}

.order-total span {
    color: #f56c6c;
    font-size: 18px;
    font-weight: bold;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-actions button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.order-actions button:hover {
    color: #1890ff;
    border-color: #1890ff;
}

.btn-pay {
    color: #1890ff;
    border-color: #1890ff !important;
}

.btn-pay:hover {
    background: #e6f7ff;
}

.btn-cancel {
    color: #ff4d4f;
    border-color: #ff4d4f !important;
}

.btn-cancel:hover {
    background: #fff2f0;
}

.btn-confirm {
    color: #52c41a;
    border-color: #52c41a !important;
}

.btn-confirm:hover {
    background: #f6ffed;
}

.btn-review {
    color: #722ed1;
    border-color: #722ed1 !important;
}

.btn-review:hover {
    background: #f9f0ff;
}

.btn-remind {
    color: #faad14;
    border-color: #faad14 !important;
}

.btn-remind:hover {
    background: #fffbe6;
}

.btn-buy-again {
    color: #13c2c2;
    border-color: #13c2c2 !important;
}

.btn-buy-again:hover {
    background: #e6fffb;
}

/* 加载状态和空状态 */
.loading,
.no-orders,
.error {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}